package com.joyzone.weixin.util;

public class Constants {
	
	public final static String Server_Url = "http://210.51.35.226/WeiXin.joyzone";
	public final static String TOKEN = "joyzone";  
	public final static String AppId = "wx9aec1c8183a84cfd";
	public final static String AppSecret = "a6747d1469b86c96553944c9a46ecc2d";
	
	public final static String MSGTYPE_TEXT = "text";
	public final static String MSGTYPE_LOCATION = "location";
	public final static String MSGTYPE_IMAGE = "image";
	
	public final static String WX_API_URL = "https://api.weixin.qq.com/";
	
	public final static String URL_Get_Access_Token = WX_API_URL + "cgi-bin/token?grant_type=client_credential&appid="+AppId+"&secret="+AppSecret;
	public final static String URL_Get_User_Info = WX_API_URL + "cgi-bin/user/info?access_token=#1#&openid=#2#";
	
	public final static String URL_Menu_Create = WX_API_URL + "cgi-bin/menu/create?access_token=#1#";
	public final static String URL_Menu_Get = WX_API_URL + "cgi-bin/menu/get?access_token=#1#";
	public final static String URL_Menu_Delete = WX_API_URL + "cgi-bin/menu/delete?access_token=#1#";
	
	public final static String Url_Oauth2_Access_Token = WX_API_URL + "sns/oauth2/access_token?appid="+AppId+"&secret="+AppSecret+"&code=#1#&grant_type=authorization_code";
	public final static String Url_Oauth2_Refresh_Token = WX_API_URL + "sns/oauth2/refresh_token?appid="+AppId+"&grant_type=refresh_token&refresh_token=#1#";
	public final static String Url_Oauth2_UserInfo = WX_API_URL + "sns/userinfo?access_token=#1#&openid=#2#";
	

	public final static String Session_Attr_Access_Token = "Access_Token";
}
